<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:63:"C:\wamp64\www\tp\public/../application/admin\view\user\add.html";i:1526298719;s:58:"C:\wamp64\www\tp\application\admin\view\common\header.html";i:1526304893;s:58:"C:\wamp64\www\tp\application\admin\view\common\footer.html";i:1527404245;}*/ ?>
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="/static/bootstrap.css">
<!-- <link rel="stylesheet" href="/static/fileinput.min.css"> -->
<script src="/static/jquery.js"></script>
<script src='/static/bootstrap.js'></script>
<script src='/static/person.js'></script>
<!-- <script src='/static/fileinput.min.js'></script> -->
<title><?php echo $title; ?></title>
<style type="text/css">
body{
  margin-top: 57px;
}
table{
    background: white;
    font-size: 20px;
}
.breadcrumb{
   background-color:#D3D3D3; 

}
.breadcrumb li{
    font-size: 25px;
}
#daohang li{
    margin-left:15px;
    margin-top: 15px;
}
.hide-list{
   background: #A8A8A8;
}
.body{
    /*border-top: 2px solid #E8E8E8;
    border-left: 2px solid #E8E8E8;*/
  /*  height: 670px;*/
    position: relative;
   /* overflow: hidden;*/
    background: #D3D3D3;
}

</style>
</head>
<body>
   <nav class="navbar navbar-fixed-top" style="background:#A020F0;">
  <div class="container-fluid">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="#"><img src="/static/image/1.jpg" height='100%'></a>
    </div>
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
      <ul class="nav navbar-nav navbar-right">
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><span style="font-size: 30px;">welcome:&nbsp;<span class="text-warning"><?php echo cookie('user')['uname']; ?></span></span> 
             <span class="caret"></span></a>
          <ul class="dropdown-menu">
            <li><a href="#">修改密码</a></li>
             <li role="separator" class="divider"></li>
            <li><a href="<?php echo url('index/index/index'); ?>">退出登陆</a></li>
            <li role="separator" class="divider"></li>
            <li><a href="<?php echo url('index/index/login'); ?>">切换用户</a></li>
            <li role="separator" class="divider"></li>
            <li><a href="<?php echo url('index/index/index'); ?>">前往前台</a></li>
          </ul>
        </li>
      </ul>
    </div><!-- /.navbar-collapse -->
  </div><!-- /.container-fluid -->
</nav> 
<div class="row">
    <div class="col-md-2" style="/*background: #ccc;*/height: 600px;" >
      <ul class='list-group'>
            <li class='list-group-item show-list'>
                <span class='glyphicon glyphicon-user'>&nbsp;user</span>
            </li>
            <li class="list-group-item hide-list" id='user'>
                  <a href="<?php echo url('user/lst'); ?>">
                      用户列表
                  </a>
             </li>
             <li class='list-group-item show-list'>
                <span class='glyphicon glyphicon-tasks'>&nbsp;type</span>
            </li>
            <li class="list-group-item hide-list" id='type'>
                  <a href="<?php echo url('type/lst'); ?>" >
                      类型列表
                  </a>
             </li>
             <li class='list-group-item show-list'>
                <span class='glyphicon glyphicon-list-alt'>&nbsp;message</span>
            </li>
            <li class="list-group-item hide-list" id='message'>
                  <a href="<?php echo url('message/lst'); ?>" id='message'>
                      信息列表
                  </a>
             </li>
             <li class='list-group-item show-list'>
                <span class='glyphicon glyphicon-sunglasses'>&nbsp;hand</span>
            </li>
            <li class="list-group-item hide-list" id='hand'>
                  <a href="<?php echo url('hand/lst'); ?>" >
                      配对列表
                  </a>
             </li> 
             <li class='list-group-item show-list'>
                <span class='glyphicon glyphicon-sunglasses'>&nbsp;judge</span>
             </li>
             <li class="list-group-item hide-list" id='judge'>
                  <a href="<?php echo url('judge/lst'); ?>" >
                      评论列表
                  </a>
             </li>
             <li class='list-group-item show-list'>
                <span class='glyphicon glyphicon-lock'>&nbsp;admin</span>
            </li>
            <li class="list-group-item hide-list" id='admin'>
                  <a href="<?php echo url('admin/lst'); ?>" >
                      管理员列表
                  </a>
             </li>
        </ul>
    </div>
    <div class="col-md-10 body">
<ol class='breadcrumb' >
      <li ><a href="<?php echo url('admin/index/index'); ?>">admin</a></li>
      <li ><a href="<?php echo url('user/lst'); ?>">user</a></li>
      <li class='active'>add</li>
</ol>
<h1 class='text-center'>添加用户</h1>
      <form   action="<?php echo url('user/add'); ?>" method="post" 
              style="width: 400px;margin-left: 420px;background: white;padding: 15px;" enctype="multipart/form-data"> 
         <div class='form-group has-feedback'>
            <label class='bg-success'><big>用户名</big></label>
            <input type='text' class='form-control' name='uname'>
            <p class='help-block' style='color:red;display: none'>你的用户名太短</p>
         </div>
         <div class='form-group has-feedback'>
            <label class='bg-success'><big>email</big></label>
            <input type='email' class='form-control' name='email'>
            <p class='help-block' style='color:red;display: none;'>你的email格式有误</p>
         </div>
         <div class='form-group has-feedback'>
            <label class='bg-success'><big>tel</big></label>
            <input type='tel' name='tel'class='form-control'>
            <p class='help-block' style='color:red;display: none;'>你的电话格式有误</p>
         </div>
          <div class='form-group has-feedback'>
            <label class='bg-success'><big>个人头像</big></label>
           <input type="file" class=" file" id="inputfile" name="image">  
            <p class='help-block' style='color:red;display: none;'>你的头像图片没传</p>
         </div>
           <div class='form-group has-feedback'>
            <label class='bg-success'><big>密码</big></label>
            <input type='password' name='pwd' class='form-control'>
            <p class='help-block' style='color:red;display: none;'>你的密码太短</p>
         </div>
           <div class='form-group has-feedback'>
            <label class='bg-success'><big>重复密码</big></label>
            <input type='password' name='repwd' class='form-control'>
            <p class='help-block' style='color:red;display: none;'>你的两次密码不一致</p>
         </div> 
         
         <div class='form-group' >
            <button class='btn btn-primary btn-block' style='font-size: 25px;'>submit</button>
         </div>      
     </form>
<footer style="margin-bottom: 50px;
               margin-top: 50px;
               left: 400px;">
          <p class='text-center bg-success ' style="font-size: 25px;"><span class='glyphicon glyphicon-plane'></span><br><mark>www.powerli.xyz</mark>
          </p>
      </footer>
    </div>
</div>
</body>
<script>
$('.hide-list').hide();
$('.show-list').click(function(){
    $(this).next().show();
    $('.hide-list').not($(this).next()).hide();
})


</script>
</html>